<?php

namespace app\admin\validate;

use think\Validate;

/**
 * 班级验证器
 */
class Student extends Validate
{
    protected $rule = [
        'name'           => 'require',
        'phone'          => 'require|unique:Student',
    ];

    protected $message = [
        'name.require'         => '请输入姓名',
        'phone.require'        => '请输入手机号',
        'name.unique'          => '手机号已存在',
    ];
}